<template>
<div class="chart_panel">
  <div class="chart_panel_head">
    <span class="chart_panel_title">
      {{ title }}
    </span>
    <slot name="headerSuffix">

    </slot>
  </div>
  <div class="chart_panel_body">
    <slot></slot>
  </div>
</div>
</template>

<script>
export default {
name: "chartPanel.vue",
  props: {
    title: String,
  }
}
</script>

<style scoped lang="scss">
.chart_panel{
  background: #FFFFFF;
  border-radius: 10px 10px 10px 10px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 16px;
  flex: 1;
}
.chart_panel_head{
  border-bottom: 1px solid #EEEEEE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}

.chart_panel_title{
  font-weight: 600;
  font-size: 18px;
  color: #000000;
  line-height: 21px;
  &:before{
    width: 3px;
    height: 18px;
    background: #1C70E3;
    content: " ";
    margin-right: 8px;
    display: inline-block;
    top: 2px;
    position: relative;
  }
}

.chart_panel_body{
  position: relative;
}
</style>
